package com.ninong.ker.common.oss.client;

import com.aliyun.oss.ClientConfiguration;
import com.aliyun.oss.OSSClient;

/**
 * @author 鸠摩智
 * 初始化OSSClient
 */
public class OssClientFactory {
	
	public static OSSClient createOssClient(String accessKeySecret, String accessKeyId, String endpoint,
			ClientConfiguration config) {
		return new OSSClient(endpoint, accessKeyId, accessKeySecret, config);
	}

	public static OSSClient createOssClient(String accessKeySecret, String accessKeyId, String endpoint) {
		return new OSSClient(endpoint, accessKeyId, accessKeySecret);
	}
}
